package com.linsen.core.rule.config;

import com.linsen.core.common.annotation.AutoConfiguration;
import com.linsen.core.redis.service.RedisService;
import com.linsen.core.rule.service.IRuleCacheService;
import com.linsen.core.rule.service.impl.RuleCacheServiceImpl;
import org.springframework.context.annotation.Bean;

/**
 * 规则配置
 * @author zhaoyong
 * @date 2023/3/13
 */
@AutoConfiguration
public class LinsenRuleAutoConfiguration {
    @Bean
    public IRuleCacheService ruleCacheService(RedisService redisService) {
        return new RuleCacheServiceImpl(redisService);
    }
}
